package com.example.javafx_demo_01;

import com.example.javafx_demo_01.view.PrimaryStageView;
import de.felixroske.jfxsupport.AbstractJavaFxApplicationSupport;
import javafx.scene.image.Image;
import javafx.stage.Stage;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class JavafxDemo01Application extends AbstractJavaFxApplicationSupport {

    public static void main(String[] args) {
        //SpringApplication.run(JavafxDemo01Application.class, args);
        launch(JavafxDemo01Application.class, PrimaryStageView.class,args);
    }

    @Override
    public void start(Stage stage) throws Exception {
        //stage.setTitle("我的第一个javaFx程序");
        //stage.getIcons().add(new Image("img/1234.jpg"));
        super.start(stage);
    }
}
